﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fuse8.DomainFramework.Domain
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public abstract class BaseEntityCommand<TEntity> : IEntityCommand<TEntity>
        where TEntity : class, IEntityObject
    {
        #region IEntityCommand<TEntity> Members

        /// <summary>
        /// 
        /// </summary>
        public abstract string CacheKey { get; }

        /// <summary>
        /// 
        /// </summary>
        public abstract string CommandName { get; }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public virtual IQueryable<TEntity> Execute()
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public virtual TEntity ExecuteOne()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
